﻿'use strict';

// Declare app level module which depends on filters, and services
angular.module('ngdemo', ['ngdemo.filters', 'ngdemo.services', 'ngdemo.directives', 'ngdemo.controllers', 'ngRoute']).
    config(['$routeProvider', function ($routeProvider) {
        $routeProvider.when('/user-list', { templateUrl: '../Content/User/user-list.html', controller: 'UserListCtrl' });
        $routeProvider.when('/user-detail/:id', { templateUrl: '../Content/User/user-detail.html', controller: 'UserDetailCtrl' });
        $routeProvider.when('/user-creation', { templateUrl: '../Content/User/user-creation.html', controller: 'UserCreationCtrl' });
        $routeProvider.otherwise({ redirectTo: '/user-list' });
    }]);
